package com.citcc.api.netty;

/**
 * @author liyachong
 * @date 2019/4/4
 * @time 10:21
 */
public class EchargeConstants {
    public static final int LOGIN_SUCCESS_C = 0X01;//登录成功
    public static final int LOGIN_FAIL_C = 0X00;//登录失败
    public static final int HEART_SUCCESS_C = 0X01;//心跳确认成功
    public static final int HEART_FAIL_C = 0X00;//心跳确认失败
    public static final int START_CD_C = 0X10;//启停
    public static final int START_SUCCESS_C = 0X00;//启动充电成功
    public static final int START_FAIL_C = 0X01;//启动充电失败
    public static final int STOP_SUCCESS_C = 0X02;//停止充电成功
    public static final int STOP_FAIL_C = 0X00;//停止充电失败
    public static final int LOGIN_C = 0X02;//登录
    public static final int HEART_C = 0X01;//心跳
    public static final int LOGOUT_C = 0X03;//退出
    public static final int LOGOUT_SUCCESS_C = 0X01;//退出成功
    public static final int LOGOUT_FAIL_C = 0X00;//退出失败
    public static final int UPLOAD_HISTORY_C = 0X06;//上传历史数据
    public static final int UPLOAD_WARN__C = 0X07;//上传告警数据
    public static final int UPLOAD_FL__C = 0X41;//上传费率
    public static final int UPLOAD_REAL_TIME__C = 0X14;//上传实时数据
    public static final int TCP_CLIENT_IDLE_SECOND = 0X1E;//30秒
    public static final int PORT = 8802;
    public static final int TERMINAL_NO = 0X3E001D00;
    
    public static final String CHARGING_STATUS = "0";//充电中
    public static final String NOT_CHARGING_STATUS = "1";//未充电
    public static final String IDLE_STATUS = "2";//空闲
    public static final String FINISH_CHARGING_STATUS = "3";//已完成
    
    
    
    
    //----------------------xc-------------------------------
    public static final int XC_LOGIN_C = 0X01;//登录
    public static final int XC_LOGIN_RESPONSE_C = 0X02;//登录响应
    public static final int XC_HEART_C = 0X03;//心跳
    public static final int XC_HEART_RESPONSE_C = 0X04;//心跳响应
    public static final int XC_LOGIN_SUCCESS_C = 0X00;//成功
    public static final int XC_LOGIN_FAIL_C1 = 0X01;//表示服务器没有注册此编号
    public static final int XC_LOGIN_FAIL_C2 = 0X02;//表示唯一序列号地址不相符
    public static final int XC_UPLOAD_FL__C = 0X06;//上传费率
    public static final int XC_UPLOAD_HISTORY_C = 0X48;//响应历史数据
    
    
    public static final String XC_GUN_FREE = "0";//枪已归位(空闲)
    public static final String XC_GUN_NOT_LINK = "1";//未链接
    public static final String XC_GUN_LINK = "2";//已连接
    
    public static final String XC_CHARGING_AWAIT = "0";//待机
    public static final String XC_CHARGING_START = "1";//启动充电中
    public static final String XC_CHARGING_CHARGING = "2";//充电中
    public static final String XC_CHARGING_FORBID = "3";//禁止充电
    
    //----指令-----------------------------
    public static final int XC_START_RESPONSE_C = 0X43;//开启指令响应
    public static final int XC_START_RESPONSE_C01 = 0X01;//表示已收到名称正在开启中
    public static final int XC_START_RESPONSE_C02 = 0X02;//枪未连接,不可启动
    public static final int XC_START_RESPONSE_C03 = 0X03;//正在充电，不可启动
    public static final int XC_START_RESPONSE_C04 = 0X04;//设备故障，不可启动充电
    
    
    //----指令-----------------------------
    public static final int XC_STOP_RESPONSE_C = 0X45;//关闭指令响应
    public static final int XC_STOP_RESPONSE_C01 = 0X01;//表示已收到名称正在开启中
    
}
